package com.hwadee.hello.mapper;

import java.util.List;

import org.apache.ibatis.annotations.Param;

import com.hwadee.hello.entity.Student;

public interface StudentMapper {
	
	/**
	 *  根据学生id查询学生信息 
	 *  @param id 学生ID
	 *  @return com.hwadee.hello.entity.Student
	 */
	Student findById(int id);
	
	List<Student> findAll();
	
	//List<Student> search(@Param("stuName") String name, @Param("stuAge")int age);
	List<Student> search(Student stu);
	
	int insert(Student stu);
	
	int delete(int id);
	
	int update(Student stu);
	
	int updatingAge(@Param("id")int id, @Param("age")int age);
}
